import { createRouter, createWebHistory } from "vue-router"
import Home from '@/view/home/index'
import Layout from '@/view/layout/index'

const router = createRouter({
    history: createWebHistory(),
    routes : [

        {
            path: '/',
            name:'index',
            component: Layout,
            meta:{
                title:'首页'
            },
            children:[
                {
                    path:'/',
                    name:'home',
                    component:Home
                }
            ]
        }
    ]
})

export default router
